package cn.zime.iot.view;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Toolkit;
import java.awt.Font;
import java.util.Objects;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class AboutView extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(() ->
		{
			try {
				AboutView frame = new AboutView();
				frame.setVisible(true);
			} catch (Exception e) {
				e.printStackTrace();
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public AboutView() {
		setResizable(false);
		setFont(new Font("Dialog", Font.BOLD, 12));
		setIconImage(Toolkit.getDefaultToolkit().getImage(AboutView.class.getResource("/image/1.png")));
		setTitle("关于本系统");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		//setBounds(100, 100, 650, 427);
		setSize(650, 427);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));

		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		
		
		JLabel lblNewLabel_1 = new JLabel("ZIME·IoT2202学生成绩管理系统");
		lblNewLabel_1.setFont(new Font("华文楷体", Font.BOLD, 20));
		lblNewLabel_1.setBounds(168, 43, 328, 40);
		contentPane.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("开发者：童佳豪 钱玉科 缪茂钻");
		lblNewLabel_2.setFont(new Font("宋体", Font.BOLD, 14));
		lblNewLabel_2.setBounds(215, 287, 207, 23);
		contentPane.add(lblNewLabel_2);
		
		JLabel lblNewLabel_3 = new JLabel("宋品璋 戚俊豪 潘易成");
		lblNewLabel_3.setFont(new Font("宋体", Font.BOLD, 14));
		lblNewLabel_3.setBounds(270, 314, 207, 16);
		contentPane.add(lblNewLabel_3);
		
		JLabel lblNewLabel_4 = new JLabel("Version. 0.9.0");
		lblNewLabel_4.setFont(new Font("宋体", Font.BOLD, 14));
		lblNewLabel_4.setBounds(282, 340, 106, 15);
		contentPane.add(lblNewLabel_4);
		
		JLabel lblNewLabel = new JLabel("Copyright © 2022-2022 ZIME.IoT All rights reserved");
		lblNewLabel.setFont(new Font("宋体", Font.BOLD, 14));
		lblNewLabel.setBounds(146, 365, 387, 15);
		contentPane.add(lblNewLabel);
		
		JLabel lblNewLabel1 = new JLabel("New label");
		lblNewLabel1.setIcon(new ImageIcon(Objects.requireNonNull(AboutView.class.getResource("/image/背景1.png"))));
		lblNewLabel1.setBounds(-110, 0, 786, 400);
		contentPane.add(lblNewLabel1);

		setLocationRelativeTo(null);
		setVisible(true);

	}
}
